﻿using OddUserManager.Data.IRepositories;
using OddUserManager.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace OddUserManager.Data.Repositories
{

    public class PhoneMessagesRepository : DapperBaseRepository<PhoneMessages, int>, IPhoneMessagesRepository

    {
        public bool InsertOrUpdate(PhoneMessages entity)
        {
            if (entity.Id <= 0)
            {
                Insert(entity);
            }
            else {
                Update(entity);
            }
            return true;
        }

        public IEnumerable<PhoneMessages> LoadPageList(int startPage, int pageSize, out int rowCount, Func<PhoneMessages, bool> where, Func<PhoneMessages, object> order)
        {
            throw new NotImplementedException();
        }
    }
}
